<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="12.css">
    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.js"></script>
</head>
<body>
<div id="div1">
    <p id="p1">这是一个段落</p>
    <p id="p2">这是另一个段落</p>
</div>

<button onclick="gotoBaidu()">点我跳转baidu</button>
<button onclick="closeThis()">点我关闭</button>

<button onclick="alert('点我干啥')">点我弹出</button>
<button onclick="confirm('确认吗?')">点我确认</button>
<button onclick="prompt('输入你的姓名', 'zyf')">点我输入</button>

<button onclick="setTimeout(sayHello, 3000)">点我弹hello</button>

<h1 id="time"></h1>
<button onclick="stopTime()">停止时间</button>

<button onclick="ajaxTest()">点我交互</button>


<button id="onAjax">点我jqajax</button>
</body>
<script src="12.js"></script>
</html>
